class News {
	String url
	String title
	String description
	Date lastUpdated
	Date dateCreated
	Boolean published
	String newsType
	String author
	Date articleDay
	int rating
	String color
	
	static constraints = {
		title( nullable: false, widget:"textarea", blank:true)
		description( widget:"richtexteditor", nullable:true )
		dateCreated( display: false )
		lastUpdated( display: false )
		newsType( inList: [ 'breaking', 'amazing', 'awesome' ], widget:"list")
		author( inList:['bob', 'steve', 'che guevera'])
		url( url:true, blank: true)
		rating(range:0..5, widget:"hslider")
		color( widget:"colorpicker", nullable:true)
	}
}
